package com.easybacklog.client.cucumberfeatures.edit;

import com.easybacklog.client.InitializeEasyBacklog;
import com.easybacklog.client.EasyBacklogPage;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.ui.Button;

/**
 * 
 * @UserInterface
 */
public class ButtonCancel extends Button {

	public ButtonCancel() {

		this.setText("Cancel");

		this.addClickHandler(new ClickHandler() {

			@Override
			public void onClick(ClickEvent event) {

				InitializeEasyBacklog.vpBacklog.clear();
				InitializeEasyBacklog.vpBacklog.add(new EasyBacklogPage());
			}
		});
	}
}